import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
App.mpType = 'app'

// 配置vuex
import store from './store'
Vue.prototype.$store = store;

// 配置api接口
/*import api from '@/utils/api'
Vue.prototype.$api = api;
*/
import axios from './axios/index'
Vue.prototype.$axios = axios;

// upload
import upload from './plugins/upload'
Vue.prototype.$upload = upload;

// toast
import toast from './plugins/toast'
Vue.prototype.$toast = toast;

// modal
import modal from './plugins/modal'
Vue.prototype.$modal = modal;

// conf
import conf from './utils/conf'
Vue.prototype.$confs = conf;

// authorize
import authorize from './plugins/authorize'
Vue.prototype.$authorize = authorize;

const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    /*
     * user             个人中心
     * userInfo         个人信息
     * company          公司信息
     * career           事业风采
     */
    pages: [
      'pages/logs/main',
      '^pages/index/main',
      'pages/template/main',
      'pages/user/main',
      'pages/userInfo/main',
      'pages/company/main',
      'pages/career/main',
      'pages/cardCode/main',
      'pages/openVip/main',
      'pages/auth/main',
      'pages/friends/main',
      'pages/help/main',
      'pages/visitor/main',
      'pages/music/main',
      'pages/cardStyle/main',
      'pages/takeCash/main',
      'pages/honor/main',
      'pages/favorites/main',
      'pages/guest/main',
      'pages/share/main',
      'pages/extension/main',
      'pages/near/main',
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black'
    }
  }
}
